<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>网络爬虫管理平台</title>
    <link rel="stylesheet" href="js/layui/css/layui.css"/>
    <link rel="stylesheet" href="css/layui-blue.css"/>
    <link rel="stylesheet" href="css/index.css"/>
    <script type="text/javascript" src="js/layui/layui.all.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
</head>
<body class="layui-layout layui-layout-admin">
<div class="layui-header">
    <!--<div class="layui-logo"></div>-->
    <!--<ul class="layui-nav layui-layout-left"></ul>-->
    <div class="layui-logo">网络爬虫管理平台</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item"><a href=""></a></li>
        <li class="layui-nav-item"><a href=""></a></li>
        <li class="layui-nav-item"><a href=""></a></li>
        <li class="layui-nav-item">
            <a href="javascript:;"></a>
            <dl class="layui-nav-child">
                <dd><a href=""></a></dd>
                <dd><a href=""></a></dd>
                <dd><a href=""></a></dd>
            </dl>
        </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
            <a href="javascript:;">
                <img id="userHeaderUrl" src="http://t.cn/RCzsdCq" class="layui-nav-img">
                <span id="userPhone"></span>
            </a>
            <!--<dl class="layui-nav-child">-->
            <!--<dd>-->
            <!--<a data-link="userInfo.html">基本资料</a>-->
            <!--</dd>-->
            <!--</dl>-->
        </li>
        <li class="layui-nav-item"><a id="logout" onclick="logout()" href="javascript:;">退出</a></li>
    </ul>
</div>
<div class="layui-side">
    <div class="layui-side-scroll menu-list">
        <ul class="layui-nav layui-nav-tree">
            <li class="layui-nav-item layui-nav-itemed layui-this"><a data-link="spiderList.html" title="爬虫列表">爬虫列表</a>
            </li>
            <li class="layui-nav-item layui-nav-itemed"><a data-link="variables.html" title="全局变量">全局变量</a></li>
            <li class="layui-nav-item layui-nav-itemed"><a data-link="datasources.html" title="数据管理">数据源管理</a></li>
            <li class="layui-nav-item layui-nav-itemed"><a data-link="userPermission.html" title="权限管理">权限管理</a></li>
            <li class="layui-nav-item layui-nav-itemed"><a data-link="userlog.html" title="日志管理">日志管理</a></li>
            <li class="layui-nav-item layui-nav-itemed"><a data-link="userInfo.html" title="基本资料">基本资料</a></li>
        </ul>
    </div>
</div>
<div class="layui-body">
    <div class="layui-tab" lay-filter="admin-tab" lay-allowClose="true">
        <ul id="layuiTab" class="layui-tab-title admin-unselect" unselectable="on" lay-allowClose="false">
            <li class="layui-this layui-tab-hidden-close" lay-id="welcome">爬虫列表</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src="spiderList.html" width="100%" height="100%" scrolling="yes" frameborder="0"></iframe>
            </div>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" src="login/js/jquery-2.1.1.min.js"></script>
<link href="js/toastr/toastr.min.css" rel="stylesheet">
<script src="js/toastr/toastr.min.js"></script>
<script type="text/javascript" src="my/mycommon.js"></script>
<script>
    //更新头像，用户名
    refreshUseInfo();

    function logout() {
        myAjax("/users/logout", "", function (result) {
            toastr.success(result.message);
            sessionStorage.setItem('userToken', "");
            sessionStorage.setItem('userInfo', "");
            location.href = urlPre;
        });
    }
</script>
</html>